import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
// 导入全局样式表
import '@/assets/global.less'
// 1.1导入axios
import axios from 'axios'
// 2.1导入element-ui包
import ElementUI from 'element-ui'
// 2.2导入element-uicss
import 'element-ui/lib/theme-chalk/index.css'
// 2.3给vue安装element插件
Vue.use(ElementUI)
// 1.2配置基地址
axios.defaults.baseURL = 'http://www.liulongbin.top:3008'
// 1.3挂载到vue的原型上
Vue.prototype.$http = axios

Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
